package com.huihuiyun.huihuiyun.server.repository;

import com.huihuiyun.huihuiyun.server.domain.HhyMemberAddress;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface HhyMemberAddressRepository extends JpaRepository<HhyMemberAddress, String> {
    List<HhyMemberAddress> findAllByMemberId(String memberId);

    Page<HhyMemberAddress> findAllByMemberId(String memberId, Pageable pageable);
}
